package com.lw.common.web.exceptions;

public class IllegalRequestException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1218644296141336767L;
	private String code; // 异常对应的返回码
	private String msgDes; // 异常对应的描述信息
	/**
	 * 数据库操作,insert返回0
	 */
	public static final IllegalRequestException DEFAULT_INSTANCE = new IllegalRequestException("4001",
			"非法请求！！");

	public IllegalRequestException() {
		super();
	}

	public IllegalRequestException(String message) {
		super(message);
		msgDes = message;
	}

	public IllegalRequestException(String code, String msgDes) {
		super(msgDes);
		this.code = code;
		this.msgDes = msgDes;
	}

	public String getRetCd() {
		return code;
	}

	public String getMsgDes() {
		return msgDes;
	}
}